<style scoped>
</style>
<template>
  <van-field v-bind="$attrs"
             :placeholder="placeholder"
             readonly >
    <template #input>
      <input v-if="!is_info" type="hidden" :name="name" :value="modelValue">
      <s94_upload v-bind="$attrs"
            :config="config"
            :is_info="is_info"
            :max="max"
            :model-value="modelValue"
            @update:model-value="$emit('update:modelValue', $event)"
            @change="$emit('change', $event)"></s94_upload>
    </template>
  </van-field>
</template>

<script>
import s94_upload from "@/components/widget/s94_upload.vue";

export default {
  components: {s94_upload},
  props: {
    name: String,
    modelValue: [String,Number],
    config: [String,Object],
    placeholder: String,
    is_info: Boolean,
    max: Number,
  },
  emits: ['update:modelValue','change'],
}
</script>